<?php
session_start();
require("../conn.php");
     
$password=$_POST['password'];
$sql=sprintf("update tbluser set password='%s' where id='%s'",md5($password),$_SESSION["UserID"]);																														
			$kq=mysql_query($sql)or die(mysql_error());
	 
	
	
			if(!$kq)
			{ 
				?>
				<script language="javascript">
				alert("không thêm được ");
			
				</script>
				<?php
					header("Location:../userc");
			}
			else
			{
			?>
				<script language="javascript">
					alert("Doi mat khau thanh cong!");
					window.location="../index.php";
				  </script>
			   <?php
				//header("Location:../index.php");
			}

		

?>
